'use client'; import { CouponItem } from '@theme/views/coupon-item'; import { LoaderSpinner } from '@theme/components'; import { useGetBasketOffersQuery, useGetFutureBasketOffersQuery, useGetExpiredBasketOffersQuery, useGetDiscountItemsQuery } from '@akinon/next/data/client/account'; import { useLocalization } from '@akinon/next/hooks'; export default function Page() { const { t } = useLocalization(); const { data: basketOffers, isLoading: basketOffersLoading, isSuccess: basketOffersSuccess } = useGetBasketOffersQuery(); const { data: futureBasketOffers, isLoading: futureBasketOffersLoading, isSuccess: futureBasketOffersSuccess } = useGetFutureBasketOffersQuery(); const { data: expiredBasketOffers, isLoading: expiredBasketOffersLoading, isSuccess: expiredBasketOffersSuccess } = useGetExpiredBasketOffersQuery(); const { data: discountItems, isLoading: discountItemsLoading, isSuccess: discountItemsSuccess } = useGetDiscountItemsQuery(); return (

{t('account.my_vouchers.header.title')}

{t('account.my_vouchers.header.subtitle')}

{basketOffersLoading && } {basketOffersSuccess && ( )} {futureBasketOffersLoading && } {futureBasketOffersSuccess && ( )} {expiredBasketOffersLoading && } {expiredBasketOffersSuccess && ( )} {discountItemsLoading && } {discountItemsSuccess && ( )} {basketOffersLoading && } {basketOffersSuccess && ( )} {futureBasketOffersLoading && } {futureBasketOffersSuccess && ( )} {expiredBasketOffersLoading && } {expiredBasketOffersSuccess && ( )} {discountItemsLoading && } {discountItemsSuccess && ( )}
); }